import request from '@/utils/request'
/*
  获取部门列表
*/
export function getDepartmentList(data: any) {
  return request({
    url: '/api/corp/wechat/department/list',
    method: 'post',
    data,
  })
}
/*
  获取部门成员列表
*/
export function getDepartmentUserList(data: any) {
  return request({
    url: '/api/corp/wechat/department/user/list',
    method: 'post',
    data,
  })
}
/*
  创建部门
*/
export function doEdit(data: any) {
  return request({
    url: '/api/corp/wechat/department/create',
    method: 'post',
    data,
  })
}
/*
  删除部门
*/
export function departmentDelete(data: any) {
  return request({
    url: '/api/corp/wechat/department/delete',
    method: 'post',
    data,
  })
}
/*
  创建成员
*/
export function doEditUser(data: any) {
  return request({
    url: '/api/corp/wechat/department/user/create',
    method: 'post',
    data,
  })
}
/*
  删除成员
*/
export function departmentUserDelete(data: any) {
  return request({
    url: '/api/corp/wechat/department/user/delete',
    method: 'post',
    data,
  })
}
/*
  分配成员分类
*/
export function assignCategory(data: any) {
  return request({
    url: '/api/corp/wechat/department/user/assign/category',
    method: 'post',
    data,
  })
}
/*
  分配成员运营
*/
export function assignAdmin(data: any) {
  return request({
    url: '/api/corp/wechat/department/user/assign/admin',
    method: 'post',
    data,
  })
}
/*
  获取账号池
*/
export function userPool(data: any) {
  return request({
    url: '/api/corp/wechat/user/pool',
    method: 'post',
    data,
  })
}
/*
  获取账号池
*/
export function userAll(data: any) {
  return request({
    url: '/api/corp/wechat/user/all',
    method: 'post',
    data,
  })
}
/*
  账号备注
*/
export function userRemark(data: any) {
  return request({
    url: '/api/corp/wechat/user/remark',
    method: 'post',
    data,
  })
}

